package com.modbus.tcp.utils;

import lombok.Data;

import java.io.Serializable;

@Data
public class ApiReturnObject implements Serializable {

    private static final long serialVersionUID = 1L;

    String code = "00";
    Object message;
    Object returnObject;

    Integer size;


    public ApiReturnObject(String code, Object message, Object returnObject) {
        super();
        this.code = code;
        this.message = message;
        this.returnObject = returnObject;
    }

    public ApiReturnObject(String code, Object message, Integer size, Object returnObject) {
        super();
        this.code = code;
        this.message = message;
        this.size = size;
        this.returnObject = returnObject;
    }

    public ApiReturnObject(Object message, Object returnObject) {
        super();
        this.message = message;
        this.returnObject = returnObject;
    }

    public ApiReturnObject(Object returnObject) {
        super();
        this.returnObject = returnObject;
    }
}